@import "@styles/theme.scss";

.container {
  position: relative;
  background: #f4f4f4;
}

.container__tab {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 80px;
  background: $white;
  border-bottom: 1px solid $border-color;
  display: flex;
  justify-content: space-around;
  flex-wrap: nowrap;
  margin-bottom: 10px;

  &-item {
    position: relative;
    margin: 0 27px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;

    @include eject(display, inline-block);

    &-txt {
      padding: 0 8px;
      height: 80px;
      color: $text-color;
      font-size: $font-size-base;
      line-height: 80px;
      @include eject(display, inline-block);
    }

    &-txt--active {
      color: $primary-color;
    }

    &-line {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 5px;
      background: $primary-color;
    }
  }
}

.container__list {
  padding-top: 90px;
}

.order-card {
  margin-top: 15px;
  background: #ffffff;
}

.order__header {
  line-height: 42px;
  padding-top: $spacing-h-md;
  padding-bottom: $spacing-h-md;
  padding-right: $spacing-h-lg;
  margin-left: $spacing-h-lg;
  border-bottom: 1px solid $border-color;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  color: $text-color;

  &-no {
    font-size: $font-size-base;
  }

  &-status {
    font-size: $font-size-base;
    color: $primary-color;
  }
}

.order__item {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding-top: $spacing-h-md;
  padding-bottom: $spacing-h-md;
  padding-left: $spacing-h-lg;
  padding-right: $spacing-h-lg;

  &-img {
    width: 130px;
    height: 130px;
    background: #fafafa;
    border-radius: 4px;
    margin-right: 20px;
  }

  &-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    height: 130px;

    &-name {
      color: $text-color;
      font-size: $font-size-base;
      line-height: 1.5;
      @include text-ellipsis;
    }

    &-b {
      display: flex;
      flex-direction: row;

      &-name {
        color: $text-color;
        font-size: $font-size-sm;
      }

      &-value {
        color: $black;
        font-size: $font-size-sm;
        font-weight: 600;
        padding-right: 20px;
      }
    }
  }
}

.order__status {
  padding-top: $spacing-h-md;
  padding-bottom: $spacing-h-md;
  padding-left: $spacing-h-lg;
  padding-right: $spacing-h-lg;

  &-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: #f4f4f4;
    height: 80px;
    align-content: center;
  }

  &-label {
    color: $text-color;
    font-size: $font-size-base;
    text-align: center;
    width: 130px;
  }

  &-content {
    color: $text-color-light;
    font-size: $font-size-sm;
  }
}

